package com.ruoyi.web.core.utils;

import java.util.Objects;

/* loaded from: WxUserInfo.class */
public class WxUserInfo {
    private String openId;
    private String nickName;
    private String gender;
    private String city;
    private String province;
    private String country;
    private String avatarUrl;
    private String unionId;
    private String language;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof WxUserInfo)) {
            return false;
        }
        WxUserInfo other = (WxUserInfo) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$openId  = getOpenId();
        Object other$openId = other.getOpenId();
        if (this$openId == null) {
            if (other$openId != null) {
                return false;
            }
        }
        else if (!this$openId.equals(other$openId)) {
            return false;
        }
        Object this$nickName  = getNickName();
        Object other$nickName = other.getNickName();
        if (this$nickName == null) {
            if (other$nickName != null) {
                return false;
            }
        }
        else if (!this$nickName.equals(other$nickName)) {
            return false;
        }
        Object this$gender  = getGender();
        Object other$gender = other.getGender();
        if (this$gender == null) {
            if (other$gender != null) {
                return false;
            }
        }
        else if (!this$gender.equals(other$gender)) {
            return false;
        }
        Object this$city  = getCity();
        Object other$city = other.getCity();
        if (this$city == null) {
            if (other$city != null) {
                return false;
            }
        }
        else if (!this$city.equals(other$city)) {
            return false;
        }
        Object this$province  = getProvince();
        Object other$province = other.getProvince();
        if (this$province == null) {
            if (other$province != null) {
                return false;
            }
        }
        else if (!this$province.equals(other$province)) {
            return false;
        }
        Object this$country  = getCountry();
        Object other$country = other.getCountry();
        if (this$country == null) {
            if (other$country != null) {
                return false;
            }
        }
        else if (!this$country.equals(other$country)) {
            return false;
        }
        Object this$avatarUrl  = getAvatarUrl();
        Object other$avatarUrl = other.getAvatarUrl();
        if (this$avatarUrl == null) {
            if (other$avatarUrl != null) {
                return false;
            }
        }
        else if (!this$avatarUrl.equals(other$avatarUrl)) {
            return false;
        }
        Object this$unionId  = getUnionId();
        Object other$unionId = other.getUnionId();
        if (this$unionId == null) {
            if (other$unionId != null) {
                return false;
            }
        }
        else if (!this$unionId.equals(other$unionId)) {
            return false;
        }
        Object this$language  = getLanguage();
        Object other$language = other.getLanguage();
        return Objects.equals(this$language, other$language);
    }

    protected boolean canEqual(Object other) {
        return other instanceof WxUserInfo;
    }

    public int hashCode() {
        Object $openId    = getOpenId();
        int    result     = (59) + ($openId == null ? 43 : $openId.hashCode());
        Object $nickName  = getNickName();
        int    result2    = (result * 59) + ($nickName == null ? 43 : $nickName.hashCode());
        Object $gender    = getGender();
        int    result3    = (result2 * 59) + ($gender == null ? 43 : $gender.hashCode());
        Object $city      = getCity();
        int    result4    = (result3 * 59) + ($city == null ? 43 : $city.hashCode());
        Object $province  = getProvince();
        int    result5    = (result4 * 59) + ($province == null ? 43 : $province.hashCode());
        Object $country   = getCountry();
        int    result6    = (result5 * 59) + ($country == null ? 43 : $country.hashCode());
        Object $avatarUrl = getAvatarUrl();
        int    result7    = (result6 * 59) + ($avatarUrl == null ? 43 : $avatarUrl.hashCode());
        Object $unionId   = getUnionId();
        int    result8    = (result7 * 59) + ($unionId == null ? 43 : $unionId.hashCode());
        Object $language  = getLanguage();
        return (result8 * 59) + ($language == null ? 43 : $language.hashCode());
    }

    public String toString() {
        return "WxUserInfo(openId=" + getOpenId() + ", nickName=" + getNickName() + ", gender=" + getGender() + ", city=" + getCity() + ", province=" + getProvince() + ", country=" + getCountry() + ", avatarUrl=" + getAvatarUrl() + ", unionId=" + getUnionId() + ", language=" + getLanguage() + ")";
    }

    public String getOpenId() {
        return this.openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getNickName() {
        return this.nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getGender() {
        return this.gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getCity() {
        return this.city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return this.province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCountry() {
        return this.country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getAvatarUrl() {
        return this.avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getUnionId() {
        return this.unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getLanguage() {
        return this.language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }
}
